﻿@section header{

}
<form id="form1">
    <div class="form-layout">
        <table class="form">
            <tr>
                <th class="formTitle">名称</th>
                <td class="formValue">
                    <textarea id="Names" name="Names" class="form-control" style="height: 100px;"></textarea>
                </td>
            </tr>
        </table>
    </div>
</form>
@section scripts{
    <script>
        var keyValue = $.request("keyValue");
        var itemId = $.request("itemId");
        function submitForm() {
            if (!$('#form1').formValid()) {
                return false;
            }
            var postData = $("#form1").formSerialize();
            postData["ItemId"] = itemId;
            $.submitForm({
                url: "/rbac/ItemsData/SubmitBatchAddForm?keyValue=" + keyValue,
                param: postData,
                success: function () {
                    $.currentWindow().$("#gridList").trigger("reloadGrid");
                }
            })
        }
    </script>
}